package com.yun.springboot_demo.service.impl;

import com.yun.springboot_demo.dao.TesterDao;
import com.yun.springboot_demo.entity.Tester;
import com.yun.springboot_demo.service.TesterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2021/11/29 15:32
 * @description：测试者业务实现类
 * @modified By：
 * @version: 1.0
 */
@Service("testerService")
public class TesterServiceImpl  implements TesterService {
    @Resource
    private TesterDao testerDao;
    @Override
    public int saveTester(Tester tester) {
        return testerDao.saveTester(tester);
    }

    @Override
    public int deleteTester(Integer id) {
        return testerDao.deleteTester(id);
    }

    @Override
    public int updateTester(Tester tester) {
        return testerDao.updateTester(tester);
    }

    @Override
    public Tester selectTesterById(Integer id) {
        return testerDao.selectTesterById(id);
    }

    @Override
    public List<Tester> selectAllTester() {
        return testerDao.selectAllTester();
    }
}
